package com.xpqh.ksg.common.persistence.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.util.Date;
import lombok.Getter;
import lombok.Setter;

/**
 * <p>
 * 用户openId表
 * </p>
 *
 * @author lizhihui
 * @since 2025-03-26
 */
@Getter
@Setter
@TableName("ksg_user_openid")
public class KsgUserOpenid implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 用户ID
     */
    private String userId;

    /**
     * 用户的openId
     */
    private String openId;

    /**
     * 平台类型 (如微信、支付宝等)
     */
    private String platform;

    /**
     * 创建时间
     */
    private Date createDate;

    /**
     * 更新时间
     */
    private Date updateDate;

    /**
     * 状态 (0:正常, 1:删除)
     */
    private Boolean status;
}

